<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>认购确认信息录入</title>
	<link rel="stylesheet" href="css/reset.css">
	<link rel="stylesheet" href="css/product.css">
	<link rel="stylesheet" href="css/select.css">
	<style>
		.text-name {
		    display: inline-block;
		    padding: 5px 0px;
		    color: #666;
		    width: auto;
		    font-size: 14px;
		    text-align: right;
		}
		.content-table-three tbody tr td {
		    max-width: 250px;
		    min-width: 100px;
		}
		.content-table-three thead tr td span {
	    	color: #4d5971;
		    display: inline-block;
		    word-wrap: break-word;
		    width: 100px;
		    line-height: 20px;
		    vertical-align: top;
		    margin-top: 10px;
		}
		.content-table-three tbody tr td p {
		    text-align: right;
		    padding-left: 12px;
		}
		.content-table-three tbody tr td span{
			padding-right: 12px;
		}
		.content-table-three thead tr td:nth-child(2) span {
		    color: #4d5971;
		    display: inline-block;
		    word-wrap: break-word;
		    width: 490px;
		    line-height: 20px;
		    vertical-align: top;
		    margin-top: 10px;
		}
		.content-table-three thead tr td:last-child {
		    line-height: 40px;
		    background: #F9FBFF;
		    text-align: right;
		    padding-right: 12px;
		}
		.content-table-three thead tr td:last-child span {
		    color: #4d5971;
		    display: inline-block;
		    width: auto;
		    line-height: 20px;
		    vertical-align: top;
		    margin-top: 10px;
		}
		.content-table-three tbody tr td:nth-child(1){
			width: 145px;
		}
		.content-table-three tbody tr td:nth-child(2){
			width: 145px;
		}
		.content-table-three tbody tr td:nth-child(3){
			width: 157px;
		}
		.content-table-three tbody tr td:nth-child(4){
			width: 142px;
		}
		.content-table-three tbody tr td:nth-child(5){
			width: 170px;
		}
		.content-table-three tbody tr td:nth-child(1) span{
			width: 85px;
		}
		.content-table-three tbody tr td:nth-child(2) span{
			width: 80px;
		}
		.content-table-three tbody tr td:nth-child(3) span{
			width: 120px;
		}
		.content-table-three tbody tr td:nth-child(4) span{
			width: 100px;
		}
		.content-table-three tbody tr td:nth-child(5) span{
			width: 105px;
		}
		.content-table-three tbody tr td:last-child {
		    width: 70px !important;
		    min-width: 70px;
		}
		.content-btn {
		    border-top: 1px dashed #e6e6e6;
		    padding-top: 20px;
		    padding-bottom: 5px;
		}
		.export-btn {
		    float: left;
		    margin-top: 0px;
		    margin-right: 12px;
		}
	</style>
</head>
<body>
	<div class="main-content">
		<div class="main-bg">
			<p class="content-title">客户认购信息录入</p>
		<form id="seachContractInboundForm"> 
		   <input name="statusList[0]" value="3"  type="hidden"> 
			<div class="content-form">
				<ul>
					<li><span class="text-name">项目名称：</span><input name = "projectname" type="text"></li>
					<li><span class="text-name">客户名称：</span><input name = "custname" type="text"></li>
					<li><span class="text-name">状态：</span>
					<select class="multiselect" id="single" name = "status">
						<option value="">草稿</option>
						<option value="">待审核</option>
						<option value="">审核通过</option>
						<option value="">审核驳回</option>
					</select></li>
					<li><button class="btn-style-two" type="button" id="seachContractInbound">搜索</button></li>
				</ul>
			</div>
			</form>
			<div class="content-list"> 
				<div class="info-list" dataTableTable = "true" bindClick = "seachContractInbound" bindForm = "seachContractInboundForm" dataAction = "/contractDetail/findList">
					<table class="content-table-three" cellspacing="0" cellpadding="0">
						<thead>
							<tr>							   
								<td>项目编号：<span name  = "projectcode" type = "table"></span></td>
								<td colspan="3">项目名称：<span name = "projectname" type = "table"></span></td>
								<td colspan="2">状态：<span name = "confirtrackstatus" type = "table" dataType="dict" dictType="confirtrackstatus"></span></td>
							</tr>
						</thead> 
						<tbody>
							<tr>
								<td>
									<p>部门名称：<span name = "appoint.departmentname" type = "table"></span></p>
									<p>客户编号：<span name = "custcode" type = "table"></span></p>
								</td>
								<td>
									<p>客户名称：<span name = "custname" type = "table"></span></p>
									<p>客户证件号码：<span name = "credentialnumber" type = "table"></span></p>
								</td>
								<td>
									<p>开户行：<span name = "bank" type = "table"></span></p>
									<p>银行卡号：<span name = "account" type = "table">
								</td>
								<td>
									<p>开户行号：<span name  = "bankno" type = "table"></span></p>
									<p>理顾名称：<span name = "isname" type = "table"><span name = "iscode" type = "table"></span></span></p>
								</td>
								<td>
									<p>到账金额：<span name = "transfercash" type = "table"></span></p>
									<p>到账时间：<span name = "transferdate" type = "table"></span></p>
								</td>
								<td type="op">															
								</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
		</div>
		<!-- <div class="table-pages clearfix">
			<ul class="pages-list">
				<li><a href=""><</a></li>
				<li><a class="menu-active" href="">1</a></li>
				<li><a href="">2</a></li>
				<li><a href="">3</a></li>
				<li><a href="">...</a></li>
				<li><a href="">20</a></li>
				<li><a href="">></a></li>
			</ul>
		</div> -->
	</div>
	<script src="js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
	<script src="js/select.jquery.js"></script>
	<script type="text/javascript" src = "js/util.js"></script>
	<script type="text/javascript" src = "js/tableTable.js"></script>
    <script type="text/javascript">
    	function lrzl(my){
    		my = $(my);
        	var index = my.parent().parent().parent().parent().find("input[name='index']").val();
        	var data = $("div[dataTableTable = 'true']").getAllTableData()[index];
        	parent.setData(data);
    		window.location.href="dataEntry.html";
    	}
    	function selectInfo(my){
    		my = $(my);
        	var index = my.parent().parent().parent().parent().find("input[name='index']").val();
        	var data = $("div[dataTableTable = 'true']").getAllTableData()[index];
        	parent.setData(data);
        	if(date.confirtrackstatus ==3||date.confirtrackstatus ==4){
        		window.location.href="lookdataAudit.html";
        	}
        	else{
        		window.location.href="lookdataEntry.html";
        	}
    	
    	}
        $(document).ready(function (){//新增
			$('.multiselect').multiselect({setMaxOptionNum:4,selectedHtmlValue:''});
			$('#single').multiselect({multiple:false,selectedHtmlValue:'全部',setWidth: 140+'px'});
			$('#single1').multiselect({multiple:false,selectedHtmlValue:'全部',setWidth: 140+'px'});
		 });
         function toExamine(){
        	parent.layer.open({
			      type: 2,
			      title: '审核',
			      shadeClose: true,
			      shade: 0.2,
			      maxmin: true, //开启最大化最小化按钮
			      area: ['870px', '450px'],
			      content: 'toExamine.html'
			    });
         }
         function tableCallBack($this){
        	
         }
         function auditInfo(my){
        	 my = $(my);
         	var index = my.parent().parent().parent().parent().find("input[name='index']").val();
         	var data = $("div[dataTableTable = 'true']").getAllTableData()[index];
         	parent.setData(data);
     		parent.layer.open({
			      type: 2,
			      title: '确认提交',
			      shadeClose: true,
			      shade: 0.2,
			      maxmin: true, //开启最大化最小化按钮
			      area: ['500px', '300px'],
			      content: 'sureExamine.html',
			       end:function(){
				 	 $('div[dataTableTable="true"]').ECDATableTable();
				  }
			    });
        	 
         }
         function opCallBack($this,date){
        	 if(date.confirtrackstatus){
        		 if(date.confirtrackstatus ==1 ||date.confirtrackstatus ==4 ){
        			 $this.append('	<i onclick = "lrzl(this)" data-id="'+date.id+'" class="btn-operation">编辑</i><i onclick = "selectInfo(this)" data-id="'+date.id+'" class="btn-operation">查看</i><i onclick = "auditInfo(this)" data-id="'+date.id+'" class="btn-operation">提交审核</i>');
        		 }
        		 if(date.confirtrackstatus ==2 ||date.confirtrackstatus ==3 ){
        			 $this.append('	<i onclick = "selectInfo(this)" data-id="'+date.id+'" class="btn-operation">查看</i>');
        		 }       		
        	 }
        	 else{
        		 $this.append('	<i onclick = "lrzl(this)" data-id="'+date.id+'" class="btn-operation">资料录入</i>'); 
        	 }       	
         }
         
         function parentReload(){
        	 location.reload();
         }
	</script>

</body>
</html>